package com.bearhy.jqadmin.service;

import com.bearhy.jqadmin.mapper.JqadminUserMapper;
import com.bearhy.jqadmin.model.JqadminUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class JqadminUserService {

    @Autowired
    private JqadminUserMapper jqadminUserMapper;

    public List<JqadminUser> getAll(){
        List<JqadminUser> list = jqadminUserMapper.selectAll();
        return list;
    }

    public JqadminUser getByUserName(String userName){
        return jqadminUserMapper.selectByUserName(userName);
    }
}
